package com.spring.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.spring.springboot.entity.GoodInfoEntity;
import com.spring.springboot.service.GoodInfoService;

/**
*@author LSY
*Time: 2018年12月21日上午10:31:38
*
*
*/
@RestController
public class GoodController {

	@Autowired
	private GoodInfoService goodService;
	
	@RequestMapping(value = "/save")
	public Long saveGood(GoodInfoEntity goodInfo) throws Exception {
		return goodService.saveGood(goodInfo);
	}
	
	
}
